package com.anrong.wulansdk.sdk.interfaces;

/**
 * 接口URL
 * @author cxy
 *
 */
public class DataURL {


	/**吉林上传事件的地址
	 * http://127.0.0.1:1002/IReceive/eventSaves
	 * @return
	 */

	public static String BaseURL(){
		return "http://" + getIP() + ":" + getPost();
	}
	
	public static String getIP(){
//		return "182.92.67.72";
//		return "124.204.45.69";
//		return "192.168.1.202";
		return  "127.0.0.1";
	}
	
	public static String getPost(){
		return "1002";
//		return "50000";
//		return "7878";
	}
	
	
	public static String log(){
		//return BaseURL()+"/appLog/log";
		return BaseURL()+"/IReceive/eventSaves";
	}
	
	
	public static String locaiton(double latitude, double longitude){
//		return "https://maps.googleapis.com/maps/api/geocode/json?latlng="+latitude+","+longitude+"&location_type=ROOFTOP&result_type=street_address&key=AIzaSyC8IXpNgfA7uD-Xb0jEqhkEdB7j3gbgOiE";
		return "http://api.map.baidu.com/geocoder?output=json&location="+latitude+","+longitude+"&ak=ejbDY5MleoYcA7GjcmIRDz9gFiEQjdU4";
	}
	
	
}
